from starlette.endpoints import HTTPEndpoint
from starlette.responses import JSONResponse
from database import Session, engine
import datetime
from dao import DaoWorkRecord


class WorkrecordConfirm(HTTPEndpoint):
    async def get(self, request):
        session = Session()
        try:
           return  DaoWorkRecord.get_workrecord_confirm(session)
        finally:
            session.close()